<?php
session_start();
?>
<html>
<head>


<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#0099FF">
<?php      

include("../../MerchandiseBay/conn.php");
date_default_timezone_set('Asia/Kuala_Lumpur');
$today = date("m/d/Y");
  $username=$_SESSION['username'];
  $SQL="select * from reservation where name='".$_SESSION['username']."' and reservationdate >= '$today' order by reservationdate asc";
  //exit;
  //$SQL="select * from users where username='$username'";
  $qry=mysql_query($SQL,$conn);
	$count=1;
  while($row=mysql_fetch_array($qry))
	    { 
		  extract($row);  
?>

<form name="reservation" method="post" action="profileUp.php" onSubmit="return checkData()">
  <table width="400" height="161" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="33" colspan="2"><font color="#FFFF00"><strong><?php echo $name; ?>'s Reservation <?=$count?> </strong></font></td>
    </tr>
    <tr> 
      <td width="37%" height="32"><div align="right"><strong><font color="#FF6600">Name 
          * :</font></strong></div></td>
      <td width="63%"><?php echo $name; ?></td>
    </tr>
	<tr> 
      <td width="37%" height="32"><div align="right"><strong><font color="#FF6600">Reservation Date
          * :</font></strong></div></td>
      <td width="63%"><?php echo $reservationdate; ?></td>
    </tr>
	<tr>
	  <td height="32"><strong><font color="#FF6600">Reservation Time
      * :</font></strong></td>
	  <td><?php echo $reservationTime; ?></td>
    </tr>
	<tr> 
      <td height="32" colspan="2" align="left"><div align="left"><a href="reservationdata.php?id=<?php echo $id; ?>">More Details</a></div></td>
    </tr>
</table>	</form>
  	<?
	$count=$count+1;
	}?>
  <p>&nbsp;</p>
 
<p>&nbsp;</p>
</form>

<p>&nbsp;<!-- PopUp Calendar BEGIN -->

<noscript><p>&nbsp;</p></noscript>
</body>
</html>
